package w6;

public class Employee {
	// 姓名、年薪
	private String name;
	private int salary;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSalary() {
		return salary;
	}
	public void setSalary(int salary) {
		if (salary > 3000) {
			this.salary = salary;
		}
		throw new IllegalArgumentException();
	}

}
